package com.zbl.zblproject.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;

/**
 * @author youlanqiang
 * @version 1.0
 * @date 2018/10/11
 * 订单产品
 */
@TableName("zbl_orderitem")
public class OrderItem {

    @TableId(type = IdType.AUTO)
    private int id;

    private String orderSn;

    private int cartsId;

    private int goodsId;

    private String goodsName;

    private String brandName;

    private String goodsDesc;

    private int goodsNum;

    private BigDecimal shopPrice;




    /**
     * 已经采购
     */
    private int isPurchasing;

    /**
     * 已经入库
     */
    private int isInto;

    /**
     * 已经出库
     */
    private int isOut;

    /**
     * 能否在采购列表中展示
     */
    private int isNopur;

    /**
     * 供应商ID
     */
    private int suppliersId;

    private BigDecimal discount;

    @TableField(exist = false)
    private String supplierName;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public int getCartsId() {
        return cartsId;
    }

    public void setCartsId(int cartsId) {
        this.cartsId = cartsId;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getGoodsDesc() {
        return goodsDesc;
    }

    public void setGoodsDesc(String goodsDesc) {
        this.goodsDesc = goodsDesc;
    }

    public int getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(int goodsNum) {
        this.goodsNum = goodsNum;
    }

    public BigDecimal getShopPrice() {
        return shopPrice;
    }

    public void setShopPrice(BigDecimal shopPrice) {
        this.shopPrice = shopPrice;
    }




    public int getIsPurchasing() {
        return isPurchasing;
    }

    public void setIsPurchasing(int isPurchasing) {
        this.isPurchasing = isPurchasing;
    }

    public int getIsInto() {
        return isInto;
    }

    public void setIsInto(int isInto) {
        this.isInto = isInto;
    }

    public int getIsOut() {
        return isOut;
    }

    public void setIsOut(int isOut) {
        this.isOut = isOut;
    }


    public int getIsNopur() {
        return isNopur;
    }

    public void setIsNopur(int isNopur) {
        this.isNopur = isNopur;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public int getSuppliersId() {
        return suppliersId;
    }

    public void setSuppliersId(int suppliersId) {
        this.suppliersId = suppliersId;
    }

    @Override
    public String toString() {
        return "OrderItem{" +
                "id=" + id +
                ", orderSn='" + orderSn + '\'' +
                ", cartsId=" + cartsId +
                ", goodsId=" + goodsId +
                ", goodsName='" + goodsName + '\'' +
                ", brandName='" + brandName + '\'' +
                ", goodsDesc='" + goodsDesc + '\'' +
                ", goodsNum=" + goodsNum +
                ", shopPrice=" + shopPrice +
                '}';
    }


    public BigDecimal getDiscount() {
        return discount;
    }

    public void setDiscount(BigDecimal discount) {
        this.discount = discount;
    }
}
